#include<stdio.h>
#include<conio.h>
char cauhoi[200],dapan[100];
int getQuestion(int line){
    char temp[300];
    int n,i,j=0,ch;
    FILE *fp=fopen("DATA.TXT","r");
    if(fp==NULL)return 0;
    fscanf(fp,"%d",&n);
    for(i=1;i<=line+1;i++)fgets(temp,300,fp);
    i=0;
    while(temp[i]!='\0' && temp[i]!='?'){
        cauhoi[i]=temp[i];
        i++;
    }
    cauhoi[i]='\0';
    if(temp[i]=='\0') return 0;//Doc bi loi
    j=0;i++;
    while(temp[i+j]!='\0'){
        dapan[j]=temp[i+j];
        j++;
    }
    dapan[j]='\0';
    fclose(fp);
}
int main(){
    if(getQuestion(3)){
        puts(cauhoi);
        puts(dapan);
    }else puts("Doc file bi loi");
    getch();
}
